/* Login组件样式 */

/* 字体定义 */
@font-face {
  font-family: 'Huninn';
  src: url('/assets/fonts/Huninn-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 基础样式 */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #121212;
  padding: 20px;
  font-family: 'Huninn', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.login-desktop-container {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
  font-family: 'Huninn', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 移动端样式 */
.login-mobile-logo {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.login-mobile-logo img {
  width: 80%;
  max-width: 300px;
}

.login-mobile-card {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid #2a2a2a;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.login-mobile-card .ant-card-body {
  padding: 24px;
  font-family: 'Huninn', 'PingFang SC', sans-serif;
}

/* 桌面端样式 */
.login-desktop-left {
  flex: 1;
  background: linear-gradient(135deg, #121212 0%, #1f1f1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.login-desktop-left-content {
  text-align: center;
}

.login-desktop-left-content img {
  display: flex;
  justify-content: center;
}

.login-desktop-right {
  flex: 1;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 2;
}

.login-desktop-card {
  width: 800px;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid #2a2a2a;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
}

.login-desktop-card .ant-card-body {
  padding: 40px;
  font-family: 'Huninn', 'PingFang SC', sans-serif;
}

/* 标题区域 */
.login-title-section {
  text-align: center;
  margin-bottom: 40px;
}

.login-title-section-mobile {
  text-align: center;
  margin-bottom: 24px;
}

.login-title {
  margin: 0;
  color: #3B82F6;
  font-family: 'Huninn', 'PingFang SC', sans-serif;
  font-weight: 600;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Huninn', 'PingFang SC', sans-serif;
}

/* 表单样式 */
.login-form-container {
  margin-bottom: 16px;
}

.login-form-item {
  margin-bottom: 16px;
}

.login-button-container {
  margin-bottom: 16px;
}

.login-link-container {
  text-align: center;
  color: #ffffff;
}

.login-link-text {
  color: #ffffff;
  font-size: 14px;
}

.login-link {
  color: #3B82F6;
  font-weight: bold;
  margin-left: 4px;
  cursor: pointer;
}

/* 气泡装饰效果 */
.login-bubble {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

/* 法律条款弹窗样式 */
.legal-modal .ant-modal-header {
  background: linear-gradient(135deg, #31005e 0%, #6b2e98 100%);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.legal-modal .ant-modal-title {
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.legal-modal .ant-modal-close {
  color: rgba(255, 255, 255, 0.8);
}

.legal-modal .ant-modal-close:hover {
  color: white;
}

.legal-modal .ant-modal-body {
  padding: 0;
  max-height: 60vh;
  overflow: hidden;
}

.legal-modal-content {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.legal-modal-text {
  white-space: pre-wrap;
  line-height: 1.6;
}

/* 自定义滚动条 */
.legal-modal .ant-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal .ant-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.legal-modal .ant-modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.legal-modal .ant-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
  }
}

/* Ant Design组件样式覆盖 */
.login-form .ant-form-item-label > label,
.login-form .ant-input,
.login-form .ant-btn,
.login-form .ant-tabs-tab,
.login-form .ant-typography {
  font-family: 'Huninn', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.login-form .ant-tabs-tab {
  color: #ffffff !important;
}

.login-form .ant-tabs-tab-active {
  color: #3B82F6 !important;
}

.login-form .ant-tabs-ink-bar {
  background: #3B82F6 !important;
}
